package yadong.example.code;

/**
 * Hello world!
 *
 */
public class SplitString 
{
    public static void main( String[] args )
    {
        String prop = "/dc-bars-clubs.html|http://www.washingtonpost.com/goingoutguide/bars-clubs";
        String[] props = prop.split("[|]");//using "[|]" instead of "|"
        for (String p : props) {
			System.out.println("prop===="+p);
		}
        prop = "bars-clubs,music,museums,theater-dance";
        props = prop.split("[,]");//using "[|]" instead of "|"
        for (String p : props) {
        	System.out.println("prop===="+p);
        }
    }
}
